/**
 * 
 */
package com.zhaoyan.pojo;

/**
 * @author zhaoyan
 *
 * 2020年1月29日
 */
public class PlanVo {
	
	
	private int id;
	private String proname;
	private double money;
	private String promanager;
	private int departid;
	private String details;
	private String department;
	@Override
	public String toString() {
		return "PlanVo [id=" + id + ", proname=" + proname + ", money=" + money + ", promanager=" + promanager
				+ ", departid=" + departid + ", details=" + details + ", department=" + department + "]";
	}
	/**
	 * @param id
	 * @param proname
	 * @param money
	 * @param promanager
	 * @param departid
	 * @param details
	 * @param department
	 */
	public PlanVo(int id, String proname, double money, String promanager, int departid, String details,
			String department) {
		super();
		this.id = id;
		this.proname = proname;
		this.money = money;
		this.promanager = promanager;
		this.departid = departid;
		this.details = details;
		this.department = department;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getProname() {
		return proname;
	}
	public void setProname(String proname) {
		this.proname = proname;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public String getPromanager() {
		return promanager;
	}
	public void setPromanager(String promanager) {
		this.promanager = promanager;
	}
	public int getDepartid() {
		return departid;
	}
	public void setDepartid(int departid) {
		this.departid = departid;
	}
	public String getDetails() {
		return details;
	}
	public void setDetails(String details) {
		this.details = details;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	/**
	 * 
	 */
	public PlanVo() {
		super();
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + departid;
		result = prime * result + ((department == null) ? 0 : department.hashCode());
		result = prime * result + ((details == null) ? 0 : details.hashCode());
		result = prime * result + id;
		long temp;
		temp = Double.doubleToLongBits(money);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + ((promanager == null) ? 0 : promanager.hashCode());
		result = prime * result + ((proname == null) ? 0 : proname.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PlanVo other = (PlanVo) obj;
		if (departid != other.departid)
			return false;
		if (department == null) {
			if (other.department != null)
				return false;
		} else if (!department.equals(other.department))
			return false;
		if (details == null) {
			if (other.details != null)
				return false;
		} else if (!details.equals(other.details))
			return false;
		if (id != other.id)
			return false;
		if (Double.doubleToLongBits(money) != Double.doubleToLongBits(other.money))
			return false;
		if (promanager == null) {
			if (other.promanager != null)
				return false;
		} else if (!promanager.equals(other.promanager))
			return false;
		if (proname == null) {
			if (other.proname != null)
				return false;
		} else if (!proname.equals(other.proname))
			return false;
		return true;
	}
	
	
	
	
	

}
